<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		 
			
  
    <meta name="twitter:card" content="summary"/>
    
      <meta name="twitter:image" content="https://www.samrainhan.com/images/avatar.png" />
    
  
  
  <meta name="twitter:title" content="Sublime Text2简介"/>
  <meta name="twitter:description" content="思维导图文件下载 安装 老窝 ubuntu PPA sudo add-apt-repository ppa:webupd8team/sublime-text-2 sudo apt-get update sudo apt-get install sublime-text-2-dev 学习视频 美化 更改图标 添加Soda主题 运行Packge Control Install,安装Theme-Sod"/>
  
  
  
  
    <meta name="twitter:creator" content="@韩雨"/>
  



		
		<meta name="author" content="韩雨">
		<meta name="description" content="学习 &amp;nbsp;&amp;bull;&amp;nbsp; 生活">
		<meta name="generator" content="Hugo 0.52" />
		<title>Sublime Text2简介 &middot; sam的小窝</title>
		<link rel="shortcut icon" href="https://www.samrainhan.com/images/favicon.ico">
		<link rel="stylesheet" href="https://www.samrainhan.com/css/style.css">
		<link rel="stylesheet" href="https://www.samrainhan.com/css/highlight.css">

		
		<link rel="stylesheet" href="https://www.samrainhan.com/css/font-awesome.min.css">
		

		
		<link href="https://www.samrainhan.com/index.xml" rel="alternate" type="application/rss+xml" title="sam的小窝" />
		

		
	</head>

    <body>
       <nav class="main-nav">
	
	
		<a href='https://www.samrainhan.com/'> <span class="arrow">←</span>Home</a>
	
	<a href='https://www.samrainhan.com/posts'>Archive</a>
	<a href='https://www.samrainhan.com/tags'>Tags</a>
	<a href='https://www.samrainhan.com/about'>About</a>

	

	
	<a class="cta" href="https://www.samrainhan.com/index.xml">Subscribe</a>
	
</nav>


        <section id="wrapper" class="post">
            <article>
                <header>
                    <h1>
                        Sublime Text2简介
                    </h1>
                    <h2 class="headline">
                    Nov 22, 2012 00:00
                    · 1044 words
                    · 3 minute read
                      <span class="tags">
                      
                      
                          
                              <a href="https://www.samrainhan.com/tags/%E8%BD%BB">轻</a>
                          
                              <a href="https://www.samrainhan.com/tags/%E6%96%87%E6%9C%AC%E7%BC%96%E8%BE%91%E5%99%A8">文本编辑器</a>
                          
                              <a href="https://www.samrainhan.com/tags/ide">ide</a>
                          
                      
                      
                      </span>
                    </h2>
                </header>
                
                  
                    <div id="toc">
                      <nav id="TableOfContents">
<ul>
<li><a href="#安装">安装</a></li>
<li><a href="#学习视频-https-tutsplus-com-course-improve-workflow-in-sublime-text-2"><a href="https://tutsplus.com/course/improve-workflow-in-sublime-text-2/">学习视频</a></a></li>
<li><a href="#美化">美化</a></li>
<li><a href="#插件">插件</a></li>
<li><a href="#tips">TIPs</a></li>
</ul>
</nav>
                    </div>
                  
                
                <section id="post-body">
                    

<p><a href="https://docs.google.com/open?id=0B1DrsqrLRzeIN1ZzSTg5TmQyVzA">思维导图文件下载</a></p>

<h1 id="安装">安装</h1>

<ul>
<li><p><a href="http://www.sublimetext.com/2">老窝</a></p></li>

<li><p>ubuntu PPA</p></li>
</ul>

<pre>
sudo add-apt-repository ppa:webupd8team/sublime-text-2

sudo apt-get update

sudo apt-get install sublime-text-2-dev
</pre>

<h1 id="学习视频-https-tutsplus-com-course-improve-workflow-in-sublime-text-2"><a href="https://tutsplus.com/course/improve-workflow-in-sublime-text-2/">学习视频</a></h1>

<h1 id="美化">美化</h1>

<ul>
<li><p><a href="https://github.com/dmatarazzo/Sublime-Text-2-Icon">更改图标</a></p></li>

<li><p><a href="https://github.com/buymeasoda/soda-theme">添加Soda主题</a></p>

<pre><code>运行Packge Control Install,安装Theme-Soda

修改Gloabl Setting-User，添加 &quot;theme&quot;: &quot;Soda Dark.sublime-theme&quot;
</code></pre></li>
</ul>

<h1 id="插件">插件</h1>

<ul>
<li><p>ZenCoding</p>

<pre><code>Ctrl+Alt+Enter
</code></pre></li>

<li><p>jsFormat</p>

<pre><code>格式化js
</code></pre></li>

<li><p><a href="http://wbond.net/sublime_packages/sftp">sFtp</a></p>

<pre><code>通过sftp/ftp直接管理远程文件，或者同步本地文件/文件夹到服务器对应目录，可以选择保存本地文件时自动上传
</code></pre></li>

<li><p>DocBlockr</p>

<pre><code>在JS函数上方输入/**、回车，doc就生成好了，还可以按tab在各项移动
</code></pre></li>

<li><p>sublime-jslint</p>

<pre><code>打开一个js文件，control+j，即可输出jsLint检查的结果
</code></pre></li>

<li><p>Sublime CodeIntel</p>

<pre><code>代码自动提示
</code></pre></li>

<li><p>JsMinifier</p>

<pre><code>该插件基于Google Closure compiler，自动压缩js文件
</code></pre></li>

<li><p>Bracket Highlighter</p>

<pre><code>类似于代码匹配，可以匹配括号，引号等符号内的范围
</code></pre></li>

<li><p>GBK to UTF8</p>

<pre><code>将文件编码从GBK转黄成UTF8，快捷键Ctrl+Shift+C
</code></pre></li>

<li><p>Git</p>

<pre><code>基本上实现了git的所有功能
</code></pre></li>

<li><p>Clipboard History</p>

<pre><code>粘贴板历史记录，方便使用复制/剪切的内容。
</code></pre></li>

<li><p>Tortoise</p>

<pre><code>Windows-only plugin that provides key bindings and menu entries for TortoiseSVN, TortoiseGit and TortoiseHg.
</code></pre></li>

<li><p>Terminal</p>

<pre><code>Open a terminal at the current file, or the root of your project. Can be configured to use a custom terminal.
</code></pre></li>

<li><p><a href="https://github.com/kemayo/sublime-text-2-clipboard-history">sublime-text-2-clipboard-history</a></p>

<pre><code>保存剪贴板历史，不包含多重选择
</code></pre></li>

<li><p><a href="https://github.com/SublimeText/CTags">CTags</a></p>

<pre><code>working with tags generated by Exuberant CTags
</code></pre></li>

<li><p>GenerateUUID</p>

<pre><code>generate a UUID v4
</code></pre></li>

<li><p><a href="https://github.com/titoBouzout/SideBarEnhancements">SideBarEnhancements</a></p>

<pre><code>边栏增强工具
</code></pre></li>

<li><p><a href="https://github.com/stuartherbert/sublime-phpsnippets">sublime-phpsnippets</a></p>

<pre><code>更多的PHP代码片段
</code></pre></li>

<li><p><a href="https://github.com/devtellect/sublime-twitter-bootstrap-snippets">sublime-twitter-bootstrap-snippets</a></p>

<pre><code>关于bootstrap的代码片段
</code></pre></li>

<li><p><a href="https://github.com/erichard/SublimeCTagsPHP">SublimeCTagsPHP</a></p>

<pre><code>PHP专用的CTags插件
</code></pre></li>

<li><p><a href="https://github.com/yangweijie/ThinkPHP-Snippets">ThinkPHP-Snippets</a></p>

<pre><code>ThinkPHP的代码片段
</code></pre></li>

<li><p><a href="https://github.com/oct8cat/sublime-phpdox">PhpDox</a></p>

<pre><code>通过快捷键从当前PHP代码中生成符合PHPDoc标准的注释
</code></pre></li>
</ul>

<h1 id="tips">TIPs</h1>

<ul>
<li><p>快捷的命令面板</p>

<pre><code>Ctrl+Shift+p
</code></pre></li>

<li><p>Goto Anything</p>

<pre><code>Ctrl+p
</code></pre></li>

<li><p>快速列出/跳转到某个函数</p>

<pre><code>Ctrl+p然后输入@

Ctrl+r
</code></pre></li>

<li><p>在当前文件中进行搜索</p>

<pre><code>Ctrl+p然后输入#
</code></pre></li>

<li><p>在指定目录下所有文件中搜索内容</p>

<pre><code>CTRL + SHIFT + f
</code></pre></li>

<li><p>加上数字跳转到相应的行</p>

<pre><code>Ctrl+p然后输入:

Ctrl+g
</code></pre></li>

<li><p>而更酷的是你可以用 Command+P 加上一些关键词跳转到某个文件同时加上 @ 来列出/跳转到目标文件中的某个函数，或是同时加上 # 来在目标文件中进行搜索，或是同时加上 : 和数字来跳转到目标文件中相应的行。</p></li>

<li><p>多重选择</p>

<pre><code>单个选择相同文字

选中文字

连续按Ctrl+d

选择所有相同文字

选中文字

Alt+F3

单个选择不同文字

按住Ctrl鼠标选择

不选择相同文字中的某些

选中文字

连续按Ctrl+K，Ctrl+d
</code></pre></li>

<li><p>安装包控制</p>

<pre><code>1. Ctrl+`

2. 输入以下字符串然后回车

import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())

3. 重启Sublime Text2

4.Ctrl+Shift+p然后输入pci，如果有那么说明安装上去了
</code></pre></li>

<li><p>激活VIM模式</p>

<pre><code>修改Preference-Setting-User，添加以下语句&quot;ignored_packages&quot;: []
</code></pre></li>

<li><p>无干扰模式</p>

<pre><code>Shift+F11
</code></pre></li>

<li><p>TextMate Bundle</p>

<pre><code>Bundle 放到 Packages 目录里就能用。但对 Bundle 中的 command 并不支持

TextMate 的色彩主题也是可以放到 Packages 目录里直接用的
</code></pre></li>

<li><p>选择多行中的同一列进行同时编辑</p>

<pre><code>Shift键+鼠标右键

或者Ctrl+Alt+Up/Down
</code></pre></li>
</ul>

                </section>
            </article>

            
                <a class="twitter" href="https://twitter.com/intent/tweet?text=https%3a%2f%2fwww.samrainhan.com%2fposts%2f2012-11-22-sublime-text2%2f - Sublime%20Text2%e7%ae%80%e4%bb%8b "><span class="icon-twitter"> tweet</span></a>

<a class="facebook" href="#" onclick="
    window.open(
      'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href),
      'facebook-share-dialog',
      'width=626,height=436');
    return false;"><span class="icon-facebook-rect"> Share</span>
</a>

            

            
                <div id="disqus_thread"></div>
<script type="text/javascript">
    var disqus_shortname = 'samrainblogbygithub'; 

     
    (function() {
        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    })();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</div>

            

            
                <ul id="post-list" class="archive readmore">
    <h3>Read more</h3>

    
    
    
        <li>
            <a href="/posts/2019-04-26-c9-move-to-aws-c9/">Cloud9 Move to Aws C9<aside class="dates">Apr 26 2019</aside></a>
        </li>
    
        <li>
            <a href="/posts/2019-02-16-why-build-blog-with-cloud9/">2019 02 16 Why Build Blog With Cloud9<aside class="dates">Feb 16 2019</aside></a>
        </li>
    
        <li>
            <a href="/posts/2018-09-12-sports-stretching-best-practices/">运动拉伸最佳实践<aside class="dates">Sep 12 2018</aside></a>
        </li>
    
        <li>
            <a href="/posts/2018-09-12-add-2-files-to-tempdb-for-caching/">给tempdb加2个文件做缓存<aside class="dates">Sep 12 2018</aside></a>
        </li>
    
        <li>
            <a href="/posts/2018-09-12-look-for-sql-server-tables-without-a-clustered-index/">如何找到没有聚集索引的表<aside class="dates">Sep 12 2018</aside></a>
        </li>
    
        <li>
            <a href="/posts/2018-09-12-the-continuous-delivery-maturity-model/">持续实施成熟度模型<aside class="dates">Sep 12 2018</aside></a>
        </li>
    
        <li>
            <a href="/posts/2018-09-12-map-of-continuous-delivery/">持续发布的各个阶段<aside class="dates">Sep 12 2018</aside></a>
        </li>
    
        <li>
            <a href="/posts/2018-09-12-how-dropbox-securely-stores-your-passwords/">Dropbox的用户密码加密机制<aside class="dates">Sep 12 2018</aside></a>
        </li>
    
        <li>
            <a href="/posts/2018-09-12-code-inspection-tool-for-net/">NET代码检查工具<aside class="dates">Sep 12 2018</aside></a>
        </li>
    
        <li>
            <a href="/posts/2018-09-12-how-to-make-unique-id/">怎样生成唯一ID<aside class="dates">Sep 12 2018</aside></a>
        </li>
    
</ul>

            

            <footer id="footer">
    
        <div id="social">

	
	
    <a class="symbol" href="">
        <i class="fa fa-facebook-square"></i>
    </a>
    
    <a class="symbol" href="https://github.com/samrain">
        <i class="fa fa-github-square"></i>
    </a>
    
    <a class="symbol" href="">
        <i class="fa fa-twitter-square"></i>
    </a>
    


</div>

    
    <p class="small">
    
       © Copyright 2019 <i class="fa fa-heart" aria-hidden="true"></i> 韩雨
    
    </p>
    <p class="small">
        Powered by <a href="http://www.gohugo.io/">Hugo</a> Theme By <a href="https://github.com/nodejh/hugo-theme-cactus-plus">nodejh</a>
    </p>
</footer>

        </section>

        <script src="https://www.samrainhan.com/js/jquery-3.3.1.min.js"></script>
<script src="https://www.samrainhan.com/js/main.js"></script>
<script src="https://www.samrainhan.com/js/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>




  
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
	(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
	ga('create', 'UA-37708730-1', 'auto');
	
	ga('send', 'pageview');
}
</script>





    </body>
</html>
